<?php
class Task_daysales extends Minion_Task
{
	public function _execute(array $params)
	{
		$url = "";
		
		$url .= "count/daysale";
		Request::factory($url)->execute();
		
		/*
		set_time_limit ( 0 );
		ini_set('memory_limit','256M');
		
		$start=Service_daysale2::getmicrotime();
		
		// 截止时间
		$date_end = date ( 'Y-m-d' );
		
		echo $date_end."\n";
		
		$date_start =  date ( 'Y-m-d', strtotime ( $date_end." -28 days" ) );
			
		service_daysale2::count_all_daysale($date_start,$date_end);//计算销量
		
		$end=Service_daysale2::getmicrotime();
		echo "time:".($end-$start)."\n";
		 
		 */
	}
}